﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:lakana="clr-namespace:GasyTek.Lakana.Navigation.Controls">

    <!-- ModalHostControl styles -->

    <SolidColorBrush x:Key="{x:Static lakana:ModalHostControl.BackgroundBrushKey}"
                     Color="Black"
                     Opacity="0.5" />

    <Style x:Key="{x:Type lakana:ModalHostControl}"
           TargetType="{x:Type lakana:ModalHostControl}">
        <Setter Property="Background"
                Value="{DynamicResource {x:Static lakana:ModalHostControl.BackgroundBrushKey}}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type lakana:ModalHostControl}">
                    <Canvas x:Name="PART_Panel"
                            Background="{TemplateBinding Background}">
                        <Border x:Name="PART_Draggable"
                                Background="Transparent"
                                VerticalAlignment="Center">
                            <ContentPresenter ContentSource="ModalContent" />
                        </Border>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>